const webpackBase = require("./webpack.config.base");
const webpackMerge = require("webpack-merge");
const config = require("./index");
module.exports = webpackMerge(webpackBase,{
    module:{
        rules:[
            {
                test: /\.js$/,
                enforce: "pre",
                exclude: /node_modules|lib/,
                loader: "eslint-loader",
                options: {
                    fix:true,
                    emitWarning:true,
                }
            },
        ]
    },
    devServer:{
        contentBase:config.devServerOutputPath,
        overlay:{
            errors:true,
            warnings:true
        }
    }
});
